Socket
Book a DemoInstallSign in
Socket

clay-icon

Package Overview
Dependencies
Maintainers
14
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clay-icon

Clay Icon Component

2.24.1
latest
Source
npmnpm
Version published
Weekly downloads
329
-16.92%
Maintainers
14
Weekly downloads
 
Created
Source

clay-icon

A Metal Clay component for rendering SVG icons and third-party icon fonts. For third-party fonts, make sure the font file and css are included on the page.

Rendering Clay SVG Icons:

new metal.ClayIcon({
	spritemap: '/path/to/the/spritemap.svg',
	symbol: 'plus'
});

Rendering Clay Font Awesome Icons

new metal.ClayIcon({
	elementClasses: 'clay-fa icon-plus'
});

Rendering Glyphicons:

new metal.ClayIcon({
	elementClasses: 'glyphicon glyphicon-plus'
});

Rendering Font Awesome 4 Icons:

new metal.ClayIcon({
	elementClasses: 'fa fa-plus'
});

Setup

npm run build
  • Watch task:
npm run watch

Contribute

We'd love to get contributions from you! Please, check our Contributing Guidelines to see how you can help us improve.

Keywords

clay

FAQs

Package last updated on 30 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.